﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using T.Vehicleservice.Domain.T.MaintenanceRecord.Model;
using T.Vehicleservice.Domain.T.Vehicleservice.Model;
using T.Vehicleservice.Domain.T.ViolationRecords.Model;

namespace T.Vehicleservice.Repository
{
    public class VEFDbcontext : DbContext
    {
        public VEFDbcontext(DbContextOptions options) : base(options)
        {
        }
        //维修记录
         public DbSet<MaintenanceRecord> maintenanceRecords { get; set; }
        //费用记录
        public DbSet<ExpenseRecord>ecutionRecords { get; set; }
        
        //映射保养记录
        public DbSet<MaintenancesRecord> MaintenancesRecord { get; set; }
        //映射违章记录
        public DbSet<ViolationRecord> ViolationRecords { get; set; }
        /// <summary>
        /// 事故记录
        /// </summary>
        public DbSet<AccidentRecord> AccidentRecords { get; set; }
        /// <summary>
        /// 轮胎使用记录
        /// </summary>
        public DbSet<TireUsageRecord> TireUsageRecords { get; set; }
    }
}
